package com.citywithincity.api;

import java.util.List;
import java.util.Map;

import com.citywithincity.interfaces.IDestroyable;
import com.damai.action.IAction;
import com.damai.action.aop.Interceptor;

/**
 * 启动策略
 * @author renxueliang
 *
 */
public interface StartupPolicy extends IDestroyable{
	/**
	 * 启动
	 * @param config
	 * @param routeMap
	 */
	void startup(ApiConfig config,Map<String, IAction> routeMap) throws Exception ;
	
	
	List<Interceptor> getInterceptors();
}
